import Vue from 'vue'
import Router from 'vue-router'
import $ from 'jquery'
import Login from '@/components/login'
import Conmedia from '@/components/concent'
import Media from '@/components/media/media'
import Discovery from '@/components/discovery/discovery'
import Hotspot from '@/components/hotspot/hotspot'
import Noopsyche from '@/components/noopsyche/noopsyche'
import Content from '@/components/content/content'
import Userview from '@/components/userreviews/userview'
import Bigscreen from '@/components/bigscreen/bigscreen'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/',
      name: 'mediabrain',
      component: Conmedia,
      redirect: '/media',
      children:[
        {
          path: 'media',
          name: 'meiti',
          component: Media
        },
        {
          path: 'discovery',
          name: 'discovery',
          component: Discovery
        },
        {
          path: 'hotspot',
          name: 'hotspot',
          component: Hotspot
        },
        {
          path: 'noopsyche',
          name: 'noopsyche',
          component: Noopsyche
        },
         {
          path: 'content',
          name: 'content',
          component: Content
        },
        {
          path: 'user',
          name: 'user',
          component: Userview
        },
        {
          path: 'bigscreen',
          name: 'Bigscreen',
          component: Bigscreen
        }
      ]
    },

  ]
})
